//
//  UIView+Layer.h
//  HYNeiHan
//
//  Created by 上官惠阳 on 16/9/25.
//  Copyright © 2016年 上官惠阳. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (Layer)
- (void)setLayerCornerRadius:(CGFloat)cornerRadius
                 borderWidth:(CGFloat)borderWidth
                 borderColor:(UIColor *)borderColor;


/**
 *  边角半径
 */
@property (nonatomic, assign) CGFloat layerCornerRadius;
/**
 *  边线宽度
 */
@property (nonatomic, assign) CGFloat layerBorderWidth;
/**
 *  边线颜色
 */
@property (nonatomic, strong) UIColor *layerBorderColor;
/**
 *  圆角
 */
- (void)layerRoundCorner;

//圆角制造
-(void)makeRoundedCorners;

//边框制造
- (void)makeBorderColor:(UIColor *)color borderWidth:(CGFloat)width;

//radius半径的圆角
-(void)makeRoundedCornersRadius:(CGFloat)radius;

//给边框加阴影
- (void)addShadowColor:(UIColor *)color opacity:(CGFloat)opacity radius:(CGFloat)radius;

//震动效果 amplitude为震动幅度
-(void)addShakeAnimationAmplitude:(CGFloat)amplitude;
@end
